<template>
	<view>
		<view class="head">
			<view class="TA-img">
				<image src="../../static/img-6.png" mode="aspectFill"></image>
			</view>
			
			<view class="name">
				<text>李白</text>
				<view class="sex">
					<image src="../../static/index/man.png" mode=""></image>
					21
				</view>
				<view class="sex" style="background-color: #3D99F5;">
					<image src="../../static/index/man.png" mode=""></image>
					21
				</view>
			</view>
			<view class="brief-box">
				<text class="brief">白领 <text class="wire"></text> 167cm <text class="wire"></text> 11361km</text>
			</view>
		</view>
		<u-divider style="width: 686rpx;margin: auto;margin-top: 40rpx;" :text="false"></u-divider>
		
		<view class="title">他的项目</view>
		
		<view class="item-box">
			<view class="item-each" v-for="(item,index) in 2" @click="toTAitem">
				<view class="item-info-box">
					<view class="item-img">
						<image src="../../static/img-6.png" mode="aspectFill"></image>
					</view>
					<view class="item-info">
						<view class="item-name">台球🎱</view>
						<view class="aggregate">总共已陪玩总计 <text>1</text> 小时</view>
						<view class="price">
							<text>25.00</text>
							/小时（1小时起约）
						</view>
					</view>
				</view>
				<view class="yy-btn">预约</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			toTAitem(){
				uni.navigateTo({
					url:'/pages/TAitem/TAitem'
				})
			},
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #F7F8FA;
	}
	.head {
		width: 100%;
		// height: 360rpx;
		background: linear-gradient(to bottom,#E5F6F2,#F5F7FA);
		
		.TA-img {
			width: 146rpx;
			height: 146rpx;
			border-radius: 50%;
			margin: auto;
			padding-top: 74rpx;
			image {
				width: 146rpx;
				height: 146rpx;
				border-radius: 50%;
			}
		}
		
		.name {
			display: flex;
			align-items: center;
			justify-content: center;
			margin-top: 24rpx;
			text {
				font-weight: 800;
				font-size: 36rpx;
				color: #1C274C;
			}
			.sex {
				display: inline-block;
				padding: 0 8rpx;
				height: 28rpx;
				margin-left: 8rpx;
				background: #FF648F;
				border-radius: 14rpx 14rpx 14rpx 14rpx;
				// font-weight: bold;
				font-size: 20rpx;
				color: #FFFFFF;
				line-height: 28rpx;
				image {
					width: 18rpx;
					height: 19rpx;
				}
			}
		}
		
		.brief-box {
			display: flex;
			justify-content: center;
			margin-top: 16rpx;
			.brief {
				font-weight: 500;
				font-size: 22rpx;
				color: #A4A9B7;
				margin-top: 8rpx;
				.wire {
					display: inline-block;
					margin: 0 16rpx;
					width: 2rpx;
					height: 17rpx;
					background-color: #EDEEF1;
				}
			}
		}
	}
	
	.title {
		font-weight: bold;
		font-size: 30rpx;
		color: #1C274C;
		margin: 32rpx 0 0 32rpx;
	}
	
	.item-box {
		.item-each {
			width: 638rpx;
			// height: 200rpx;
			background: #FFFFFF;
			border-radius: 24rpx 24rpx 24rpx 24rpx;
			margin: auto;
			margin-top: 24rpx;
			padding: 24rpx;
			display: flex;
			justify-content: space-between;
			align-items: center;
			.item-info-box {
				display: flex;
				align-items: center;
				.item-img {
					width: 152rpx;
					height: 152rpx;
					border-radius: 24rpx 24rpx 24rpx 24rpx;
					image {
						width: 152rpx;
						height: 152rpx;
						border-radius: 24rpx 24rpx 24rpx 24rpx;
					}
				}
				.item-info {
					margin-left: 24rpx;
					.item-name {
						font-weight: bold;
						font-size: 28rpx;
						color: #1C274C;
					}
					.aggregate {
						font-weight: 500;
						font-size: 22rpx;
						color: #6B738B;
						margin-top: 10rpx;
						text {
							color: #4BC264;
						}
					}
					.price {
						font-weight: 500;
						font-size: 24rpx;
						color: #A4A9B7;
						margin-top: 16rpx;
						text {
							font-weight: bold;
							font-size: 34rpx;
							color: #FF7B18;
						}
					}
				}
			}
			.yy-btn {
				width: 128rpx;
				height: 56rpx;
				background: #62CB81;
				border-radius: 16rpx 16rpx 16rpx 16rpx;
				font-weight: 500;
				font-size: 26rpx;
				color: #FFFFFF;
				line-height: 56rpx;
				text-align: center;
			}
		}
	}
</style>
